package com.bwie.service;

import com.bwie.bo.SpuBo;
import com.bwie.pojo.SpuDetail;
import com.bwie.utils.PageResult;
import com.bwie.utils.R;
import org.springframework.http.ResponseEntity;

/**
 * @author 段阳
 * @version 1.0
 * Create by 2024/4/29 21:33
 */
public interface SpuService {
    ResponseEntity<PageResult<SpuBo>> findSpuList(String key, Integer page, Integer rows, Boolean saleable);

    R addSpuInfo(SpuBo spuBo);

    R upsaleable(Long id);

    R delSpu(Long id);

    SpuDetail getSpuDetail(Long spuId);

    R upSpuInfo(SpuBo spuBo);
}